import 'package:flutter_taotaoshipin/generated/json/base/json_convert_content.dart';
import 'package:flutter_taotaoshipin/model/interact_user_sign_in_entity.dart';

InteractUserSignInEntity $InteractUserSignInEntityFromJson(
    Map<String, dynamic> json) {
  final InteractUserSignInEntity interactUserSignInEntity = InteractUserSignInEntity();
  final int? state = jsonConvert.convert<int>(json['state']);
  if (state != null) {
    interactUserSignInEntity.state = state;
  }
  return interactUserSignInEntity;
}

Map<String, dynamic> $InteractUserSignInEntityToJson(
    InteractUserSignInEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['state'] = entity.state;
  return data;
}

extension InteractUserSignInEntityExtension on InteractUserSignInEntity {
  InteractUserSignInEntity copyWith({
    int? state,
  }) {
    return InteractUserSignInEntity()
      ..state = state ?? this.state;
  }
}